<template>
  <!-- 计算属性 -->
  <div>
    <input type="text" v-model="zhi" @input="Bdianji" />
  </div>
</template>
<script>
import zhongVue from "../zhongjian1.js";
export default {
  data() {
    return {
      zhi: "",
    };
  },
  methods: {
    Bdianji() {
      zhongVue.$emit("FunB", this.zhi);
    },
  },
};
</script>
<style  scoped>
p {
  width: 500px;
  height: 500px;
  background: blue;
  border: 1px solid #000;
}
</style>

